{if $this->operate == 'Index'}
{template header}
<script type="text/javascript" src="{PUB}Scripts/Admin/Lang.js"></script>
<script type="text/javascript">
var commonAddUrl 	= '{:U('lang/add')}';
var commonEditUrl	= '{:U('lang/edit')}';
</script> 
<div class="loading" id="loading"></div>
<div id="header-menu" attr="语言设置">
  <div class="menu-btn" id="add"> <a href="javascript:;">添加</a>
    <div class="menu-btn-l"></div>
    <div class="menu-btn-r"></div>
  </div>
</div>
<div class="clear"></div>
<div id="main-body">
<table border="0" align="center" width="100%" cellpadding="0" cellspacing="0">
  <tr>
    <td class="title-1 c-item" width="30">ID</td>
    <td class="title-1 c-item" width="150">名称</td>
    <td class="title-1 c-item">说明</td>
    <td class="title-1 c-item" width="120">主键</td>
    <td class="title-1 c-item" width="120">域名</td>
    <td class="title-2 c-item" width="150">操作</td>
  </tr>
  {loop $list $key $vo}
  <tr>
    <td class="td-0 c-item" height="20">{$vo['id']}</td>
    <td class="td-1">{$vo['name']}</td>
    <td class="td-1">{$vo['intro']}</td>
    <td class="td-1">{$vo['lang_key']}</td>
    <td class="td-1">{$vo['domain']}</td>
    <td class="td-2 c-item"><a href="javascript:;" onclick="commonEdit({$vo['id']})">修改</a> 删除</td>
  </tr>
  {/loop}
</table>
</div>
<div class="bottom-bar">
  &nbsp;
</div>
<div class="clear"></div>
{template footer}
{elseif $this->operate == 'Add'}
<table border="0" align="center" width="400" cellpadding="0" cellspacing="0">
  <tr>
    <td class="title-0 c-item" colspan="2">添加语言</td>
  </tr>
  <tr>
    <td class="td-0-1" width="40%" height="20" align="right">语言名称：</td>
    <td class="td-1"><input type="text" name="name" id="name" size="30" class="input-1" /></td>
  </tr>
  <tr>
    <td class="td-0-1" height="20" align="right">说明：</td>
    <td class="td-1"><input type="text" name="intro" id="intro" size="30" class="input-1" /></td>
  </tr>
  <tr>
    <td class="td-0-1" height="20" align="right">主键：</td>
    <td class="td-1"><input type="text" name="lang_key" id="lang_key" size="30" class="input-1" /></td>
  </tr>
  <tr>
    <td class="td-0-1" height="20" align="right">域名：</td>
    <td class="td-1"><input type="text" name="domain" id="domain" size="30" class="input-1" /></td>
  </tr>
</table>
<div class="loading2">&nbsp;</div>
{elseif $this->operate == 'Edit'}
<table border="0" align="center" width="400" cellpadding="0" cellspacing="0">
  <tr>
    <td class="title-0 c-item" colspan="2">修改语言</td>
  </tr>
  <tr>
    <td class="td-0-1" width="40%" height="20" align="right">语言名称：</td>
    <td class="td-1"><input type="text" name="name" value="{$vo['name']}" id="name" size="30" class="input-1" /></td>
  </tr>
  <tr>
    <td class="td-0-1" height="20" align="right">说明：</td>
    <td class="td-1"><input type="text" name="intro" value="{$vo['intro']}" id="intro" size="30" class="input-1" /></td>
  </tr>
  <tr>
    <td class="td-0-1" height="20" align="right">主键：</td>
    <td class="td-1"><input type="text" name="lang_key" value="{$vo['lang_key']}" id="lang_key" size="30" class="input-1" /></td>
  </tr>
  <tr>
    <td class="td-0-1" height="20" align="right">域名：</td>
    <td class="td-1"><input type="text" name="domain" value="{$vo['domain']}" id="domain" size="30" class="input-1" /></td>
  </tr>
</table>
<div class="loading2">&nbsp;</div>
{/if}